#-*- coding:utf-8 -*-
"""
author:tuhou
time:2021/7/22 上午12:00 
思路：
"""
import random


class Slide_track:
    def __init__(self):
        self.slide_track = []
        self.x_slide = []
        self.y_slide = []
        self.t_slide = []
        self.SLIDE_TIME = 500


    def get_x(self,slide_x):
        step = slide_x//25 + 1
        for i in range(25):
            if i == 0:
                x = random.randint(0,i*step)
            else:
                x = random.randint(x,i*step)
            self.x_slide.append(x)


    def get_y(self):
        for i in range(25):
            y = random.randint(0,3)
            self.y_slide.append(y)

    def get_t(self):
        step = self.SLIDE_TIME//25
        for i in range(25):
            if i == 0:
                t = 0
            else:
                t = random.randint(t,step*i)
            self.t_slide.append(t)


    def get_track(self,slide_x):
        self.get_x(slide_x)
        self.get_y()
        self.get_t()
        for i in range(len(self.x_slide)):
            self.slide_track.append([self.x_slide[i],self.y_slide[i],self.t_slide[i]])
        return self.slide_track


aa = Slide_track()
aas = aa.get_track(200)
print(aas)